package responder

type HttpHandlerFunc func(Request) error

type Container interface {
	Start() error
	Stop() error
	Join() error
	Running() bool
}

type ContainerConfig struct {
	Host        string
	Port        int
	ContextPath string
}

type ContainerBuilder interface {
	SetConfig(cfg *ContainerConfig)
	SetFilters(list []Filter)
	Mapping(method string, path string, handler HttpHandlerFunc)
	Create() Container
}

type ContainerBuilderFactory interface {
	NewBuilder() ContainerBuilder
}
